package club.pchome.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/** 求购表**/
@Table(name="t_wantbuy")
public class TWantbuy{
	/****/
	@Id
	private Long id;

	/****/
	@Column
	private Long userId;

	/**购买类型 1：生物2：能量**/
	@Column
	private Integer buyType;

	/**购买单价**/
	@Column
	private BigDecimal buyPrice;

	/**折合人民币**/
	@Column
	private BigDecimal buyRmb;

	/**当type为1的时候这里为12345分别代表生物等级，当type为2的时候为求购EG数量**/
	@Column
	private Integer buyAmount;

	/**订单号**/
	@Column
	private String orderNumber;

	/**创建时间**/
	@Column
	private Date createTime;

	/**是否已成功 0未匹配1已匹配**/
	@Column
	private Integer type;

	private long remainTime;

	public long getRemainTime() {
		return remainTime;
	}

	public void setRemainTime(long remainTime) {
		this.remainTime = remainTime;
	}

	public void setId(Long id) {
		this.id=id;
	}

	public Long getId() {
		return this.id;
	}

	public void setUserId(Long userId) {
		this.userId=userId;
	}

	public Long getUserId() {
		return this.userId;
	}

	public void setBuyType(Integer buyType) {
		this.buyType=buyType;
	}

	public Integer getBuyType() {
		return this.buyType;
	}

	public void setBuyPrice(BigDecimal buyPrice) {
		this.buyPrice=buyPrice;
	}

	public BigDecimal getBuyPrice() {
		return this.buyPrice;
	}

	public void setBuyRmb(BigDecimal buyRmb) {
		this.buyRmb=buyRmb;
	}

	public BigDecimal getBuyRmb() {
		return this.buyRmb;
	}

	public void setBuyAmount(Integer buyAmount) {
		this.buyAmount=buyAmount;
	}

	public Integer getBuyAmount() {
		return this.buyAmount;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber=orderNumber;
	}

	public String getOrderNumber() {
		return this.orderNumber;
	}

	public void setCreateTime(Date createTime) {
		this.createTime=createTime;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setType(Integer type) {
		this.type=type;
	}

	public Integer getType() {
		return this.type;
	}

}